package com.zheng.作业02;

    public class Student {
        private String sid;
        private String name;
        private int age;
        private double shengg;

        public Student() {
        }

        public Student(String sid, String name, int age, double shengg) {
            this.sid = sid;
            this.name = name;
            this.age = age;
            this.shengg = shengg;
        }

        public String getSid() {
            return sid;
        }

        public void setSid(String sid) {
            this.sid = sid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public double getShengg() {
            return shengg;
        }

        public void setShengg(double shengg) {
            this.shengg = shengg;
        }

        @Override
        public String toString() {
            return "学号:" + sid + ", 姓名:" + name + ", 年龄:" + age + ", 身高:" + shengg ;
        }


    }


